
<script language="Javascript" type="text/javascript">
<!--//
	function check_uncheck(status)
	{
		if ( status == -1 )
		{
			var checked = document.post.select_all.checked;
			for ( i = 0; i < document.post.elements.length; i++ )
			{
				if ( document.post.elements[i].name == 'delete_box[]' )
				{
					document.post.elements[i].checked = checked;
				}
			}
		}
		else if ( !status )
		{
			document.post.select_all.checked = false;
		}
		else
		{
			checked = true;
			for ( i = 0; (i < document.post.elements.length) && checked; i++ )
			{
				if ( document.post.elements[i].name == 'delete_box[]' )
				{
					checked =  document.post.elements[i].checked;
				}
			}
			document.post.select_all.checked = checked;
		}
	}
//-->
</script>

<table cellpadding="4" cellspacing="1" border="0" width="100%" class="forumline">
<colgroup>
	<col width="40%">
	<col width="60%">
</colgroup>
<tr>
	<th colspan="2" class="thHead">{L_FORM}</th>
</tr>
{SEARCH_FORM}
<tr>
	<td class="catBottom" colspan="2" align="center"><span class="genmed">&nbsp;
		<!-- BEGIN buttons --><input type="image" src="{buttons.I_BUTTON}" name="{buttons.BUTTON}" title="{buttons.L_BUTTON}" <!-- BEGIN accesskey -->accesskey="{buttons.S_BUTTON}"<!-- END accesskey --> />&nbsp;<!-- END buttons -->
	</span></td>
</tr>
</table>
<br style="font-size: 2px" />

<!-- INCLUDE pagination_box.tpl -->
<table cellpadding="4" cellspacing="1" border="0" width="100%" class="forumline">
<colgroup>
	<col width="1%">
	<col width="30%">
	<col width="19%">
	<col width="19%">
	<col width="30%">
	<col width="1%">
</colgroup>
<tr>
	<th class="thCornerL">&nbsp;#&nbsp;</th>
	<th class="thTop">{L_FILE_NAME}</th>
	<th class="thTop">{L_FILE_SIZE}</th>
	<th class="thTop">{L_DOWNLOAD_COUNT}</th>
	<th class="thTop">{L_LOCATION}</th>
	<th class="thCornerR"><input type="checkbox" name="select_all" onchange="check_uncheck(-1);" onclick="document.body.focus(); this.focus();" /></th>
</tr>
<!-- BEGIN row -->
<tr>
	<td class="<!-- BEGIN light -->row1<!-- BEGINELSE light -->row2<!-- END light -->" align="center"><span class="gen">
		{row.ROW_NUMBER}
	</span></td>
	<td class="<!-- BEGIN light -->row1<!-- BEGINELSE light -->row2<!-- END light -->"><span class="gen">
		<!-- IF strlen((string) {row.FILE_NAME}) > 25 -->
		<a href="{row.U_FILE_NAME}" title="{row.FILE_NAME}" class="gen" target="attachdownload"><!-- PHP echo '...' . substr((string) {row.FILE_NAME}, -22); --></a>&nbsp;
		<!-- ELSE -->
		<a href="{row.U_FILE_NAME}" title="{L_DOWNLOAD}" class="gen" target="attachdownload">{row.FILE_NAME}</a>&nbsp;
		<!-- ENDIF -->
		({row.EXTENSION})<br />
		<input type="text" class="post" name="file_comments[]" value="{row.FILE_COMMENT}" size="40" />
	</span></td>
	<td class="<!-- BEGIN light -->row1<!-- BEGINELSE light -->row2<!-- END light -->" align="center"><span class="gen">
		{row.FILE_SIZE}&nbsp;{row.UNIT}
	</span></td>
	<td class="<!-- BEGIN light -->row1<!-- BEGINELSE light -->row2<!-- END light -->" align="center"><span class="gen">
		<input type="text" name="download_counts[]" value="{row.DOWNLOAD_COUNT}" size="5" />
	</span></td>
	<td nowrap="nowrap" class="<!-- BEGIN light -->row1<!-- BEGINELSE light -->row2<!-- END light -->" align="center"><span class="gen">
		<!-- BEGIN privmsgs -->
		{L_PRIVMSGS}<!-- BEGIN received -->&nbsp;({row.ATTACH_COUNT})<!-- END received -->
		<!-- BEGINELSE privmsgs -->
		<a href="{row.U_VIEW_POST}" title="{L_VIEW_POST}" class="gen">{row.TOPIC_TITLE}</a>
		<!-- END privmsgs -->
	</span><br /><span class="gensmall">
		{row.FILE_TIME}<br />
		<!-- BEGIN user_link --><a href="{row.U_USERNAME}" title="{L_USERNAME}" class="gensmall"><!-- END user_link -->{row.USERNAME}<!-- BEGIN user_link --></a><!-- END user_link -->
	</span></td>
	<td nowrap="nowrap" class="<!-- BEGIN light -->row1<!-- BEGINELSE light -->row2<!-- END light -->" align="center"><span class="gen">
		<input type="checkbox" name="delete_box[]" value="{row.ATTACH_ID}" onchange="check_uncheck(this.checked);" onclick="document.body.focus(); this.focus();" />
	</span></td>
</tr>
<!-- BEGINELSE row -->
<tr>
	<td colspan="6" height="45" align="center" class="row1"><span class="gen">{L_NO_MATCHES}</span></td>
</tr>
<!-- END row -->
<tr>
	<td class="catBottom" colspan="6" align="center"><!-- BEGIN row --><input type="hidden" name="attach_ids[]" value="{row.ATTACH_ID}" /><!-- END row --><span class="genmed">&nbsp;<!-- BEGIN details -->
		<!-- BEGIN buttons --><input type="image" src="{details.buttons.I_BUTTON}" name="{details.buttons.BUTTON}" title="{details.buttons.L_BUTTON}" <!-- BEGIN accesskey -->accesskey="{details.buttons.S_BUTTON}"<!-- END accesskey --> />&nbsp;<!-- END buttons -->
	<!-- END details --></span></td>
</tr>
</table>
<!-- INCLUDE pagination_box.tpl -->
<br clear="all" />